#!/usr/bin/python
# -*- coding: utf-8 -*-

import pyglet
from pyglet.gl import *

import color as cr

def clear(color=(0, 0, 0, 0)):
	glClearColor(*cr.convert(color))
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

def set_impo():
	glShadeModel(GL_SMOOTH)
	glHint(GL_LINE_SMOOTH_HINT, GL_NICEST)
	glEnable(GL_BLEND)
	glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)